<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <%
        String contextPath = request.getContextPath();
    %>
</head>
<body>
<center>
    <font>this is zhe home page</font>
    <form action="<%=contextPath%>/file/uploadFile2.do" method="post" enctype="multipart/form-data">
        <input name="file" type="file"><br>
        <button type="submit">submit</button>
    </form>

    <br>
    <form action="<%=contextPath%>/file/uploadFileWithUsername.do" method="post" enctype="multipart/form-data">
        <input name="file" type="file"><br>
        <input name="userName" type="text"><br>
        <button type="submit">submit</button>
    </form>
</center>
</body>
</html>